package com.eas.biz.service.exam.domain;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import com.eas.biz.dao.exam.dataobject.ExamDO;

public class Exam extends ExamDO {

    /**
     * 
     */
    private static final long serialVersionUID = -5254664720257882866L;

    private List<String> subjectList;

    private List<Long> areaIdList;

    private Map<String, ExamSubjectDetail> subjectDetailMap;

    public Exam() {
        subjectDetailMap = new HashMap<String, ExamSubjectDetail>();
        areaIdList = new LinkedList<Long>();
        subjectList = new LinkedList<String>();
    }

    public void addSubjectDetail(ExamSubjectDetail detail) {
        if (detail != null) {
            subjectDetailMap.put(detail.getSubject(), detail);
        }
    }

    public ExamSubjectDetail getSubjectDetail(String subject) {
        return subjectDetailMap.get(subject);
    }

    public Map<String, ExamSubjectDetail> getSubjectDetailMap() {
        return subjectDetailMap;
    }

    public List<Long> getAreaIdList() {
        return areaIdList;
    }

    public void setAreaIdList(List<Long> areaIdList) {
        this.areaIdList = areaIdList;
    }

    public void setSubjectDetailMap(Map<String, ExamSubjectDetail> subjectDetailMap) {
        this.subjectDetailMap = subjectDetailMap;
    }

    public List<String> getSubjectList() {
        return subjectList;
    }

    public void setSubjectList(List<String> subjectList) {
        this.subjectList = subjectList;
    }
}
